package com.web.exiaodao.business.entity;

import com.web.webstart.base.entity.BaseEntity;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 
* @ClassName: ServiceNurseTraining
* @Description: 服务-护理培训/培训义工定义表
* @author eason
* @date 2016-11-03 18:26:49
*
 */
@Entity
//@Table(name = "tb_xa_nursetraining")
@Table(name = "tb_xa_service_nursetraining")
@ApiModel(value="服务-护理培训/培训义工定义表")
public class ServiceNurseTraining extends BaseEntity{

	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="培训名称,培训名称")
	private String nurseTraining_Name;
	@ApiModelProperty(value="培训开始时间（默认格式）,培训开始时间")
	private String nurseTraining_StartTime;
	@ApiModelProperty(value="培训结束时间（默认时间）,培训结束时间")
	private String nurseTraining_EndTime;
	@ApiModelProperty(value="培训地址,培训地址")
	private String nurseTraining_Address;
	@ApiModelProperty(value="培训单位，培训组织,培训单位，培训组织")
	private String nurseTraining_organization;
	@ApiModelProperty(value="培训名额,培训名额")
	private Integer quantity;
	@ApiModelProperty(value="培训价格,培训价格")
	private Double price;
	@ApiModelProperty(value="培训名额库存,名额库存,小于总名额")
	private Integer quantityInventory;
	@ApiModelProperty(value="培训中心的图片,培训中心的图片")
	private String nurseTraining_url;
	@ApiModelProperty(value="报名开始时间(yyyy-MM-dd HH:mm),报名开始时间(yyyy-MM-dd HH:mm)")
	private String orderStartTime;
	@ApiModelProperty(value="报名结束时间,报名结束时间")
	private String orderEndTime;
	@ApiModelProperty(value="图文详情（相关介绍，课程介绍等）,图文详情（相关介绍，课程介绍等）")
	private String nurseTraining_Content;
    @ApiModelProperty(value = "点击量,点击量")
    private Long clickCont;
    @ApiModelProperty(value="排序值,排序值")
    private Long sort;
    

    public static final long SORT_DEFAULT = 9999999L;

    public ServiceNurseTraining() {
		// TODO Auto-generated constructor stub
	}
	
	@ApiModelProperty(value="电话号码")
	private String mobile;
	
	public void setNurseTraining_Name(String nurseTraining_Name){
		this.nurseTraining_Name=nurseTraining_Name;
	}
	
	@Column(nullable=true,length=50)
	public String getNurseTraining_Name(){
		return nurseTraining_Name;
	}
	public void setNurseTraining_StartTime(String nurseTraining_StartTime){
		this.nurseTraining_StartTime=nurseTraining_StartTime;
	}
	
	@Column(nullable=true,length=50)
	public String getNurseTraining_StartTime(){
		return nurseTraining_StartTime;
	}
	public void setNurseTraining_EndTime(String nurseTraining_EndTime){
		this.nurseTraining_EndTime=nurseTraining_EndTime;
	}
	
	@Column(nullable=true,length=50)
	public String getNurseTraining_EndTime(){
		return nurseTraining_EndTime;
	}
	public void setNurseTraining_Address(String nurseTraining_Address){
		this.nurseTraining_Address=nurseTraining_Address;
	}
	
	@Column(nullable=true,length=255)
	public String getNurseTraining_Address(){
		return nurseTraining_Address;
	}
	public void setNurseTraining_organization(String nurseTraining_organization){
		this.nurseTraining_organization=nurseTraining_organization;
	}
	
	@Column(nullable=true,length=100)
	public String getNurseTraining_organization(){
		return nurseTraining_organization;
	}
	public void setQuantity(Integer quantity){
		this.quantity=quantity;
	}

	@Column(nullable=true,length=50)
	public Integer getQuantity(){
		return quantity;
	}
	public void setPrice(Double price){
		this.price=price;
	}
	
	@Column(nullable=true,length=50)
	public Double getPrice(){
		return price;
	}
	public void setQuantityInventory(Integer quantityInventory){
		this.quantityInventory=quantityInventory;
	}
	
	@Column(nullable=true,length=50)
	public Integer getQuantityInventory(){
		return quantityInventory;
	}
	public void setOrderStartTime(String orderStartTime){
		this.orderStartTime=orderStartTime;
	}
	
	@Column(nullable=true,length=50)
	public String getOrderStartTime(){
		return orderStartTime;
	}
	public void setOrderEndTime(String orderEndTime){
		this.orderEndTime=orderEndTime;
	}

	@Column(nullable=true,length=255)
	public String getNurseTraining_url() {
		return nurseTraining_url;
	}

	public void setNurseTraining_url(String nurseTraining_url) {
		this.nurseTraining_url = nurseTraining_url;
	}

	@Column(nullable=true,length=50)
	public String getOrderEndTime(){
		return orderEndTime;
	}
	public void setNurseTraining_Content(String nurseTraining_Content){
		this.nurseTraining_Content=nurseTraining_Content;
	}
	
	@Column(nullable=true,length=10000,columnDefinition="MEDIUMTEXT")
	public String getNurseTraining_Content(){
		return nurseTraining_Content;
	}
	@Column(nullable=true,length=50)
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

    @Column(nullable = true, length = 50)
    public Long getClickCont() {
        return clickCont;
    }

    public void setClickCont(Long clickCont) {
        this.clickCont = clickCont;
    }

    @Column(nullable = true, length = 50)
    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }
    
    @Override
    public void setInsertBefore() {
        super.setInsertBefore();
        if (sort == null) {
            sort = SORT_DEFAULT;//排序默认值
        }
    }
	
}
